﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  获取店铺动态
    /// </summary>
    public class GetStoreNewsInput
    {
        /// <summary>
        ///  店铺ID
        /// </summary>
        public int storeID { get; set; }
        /// <summary>
        ///  动态类别 【0=视频动态；1=图片动态】
        /// </summary>
        public int type { get; set; }
        /// <summary>
        ///  店主用户编码（店铺创始人或店铺合伙人）
        /// </summary>
        [Required(ErrorMessage = "店主用户编码必传项！")]
        public string ownerID { get; set; }
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传项！")]
        public string userid { get; set; }
        /// <summary>
        ///  开始日期 格式：yyyyMMddHHmmss
        /// </summary>
        public string dateStart { get; set; }
        /// <summary>
        ///  截止日期 格式：yyyyMMddHHmmss
        /// </summary>
        public string dateEnd { get; set; }
        /// <summary>
        ///  第几页 默认=1
        /// </summary>
        public int page { get; set; } = 1;
        /// <summary>
        ///  每页数量 默认=10
        /// </summary>
        public int rows { get; set; } = 10;
    }
    /// <summary>
    ///  获取有动态的日期列表
    /// </summary>
    public class NewsDateInput
    {
        /// <summary>
        ///  店铺ID
        /// </summary>
        //[Required]
        //[RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入店铺ID")]
        public int storeID { get; set; }
        /// <summary>
        ///  动态类别 【0=视频动态；1=图片动态】
        /// </summary>
        public int type { get; set; }
        /// <summary>
        ///  店主用户编码（店铺创始人或店铺合伙人）
        /// </summary>
        [Required(ErrorMessage = "店主用户编码必传项！")]
        public string ownerID { get; set; }
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传项！")]
        public string userid { get; set; }
    }
}